import request from '@/utils/request'

// 查询物业列表
export function listWuye(query) {
  return request({
    url: '/parkmanagement/wuye/list',
    method: 'get',
    params: query
  })
}

// 查询物业详细
export function getWuye(propertyId) {
  return request({
    url: '/parkmanagement/wuye/' + propertyId,
    method: 'get'
  })
}

// 新增物业
export function addWuye(data) {
  return request({
    url: '/parkmanagement/wuye',
    method: 'post',
    data: data
  })
}

// 修改物业
export function updateWuye(data) {
  return request({
    url: '/parkmanagement/wuye',
    method: 'put',
    data: data
  })
}

// 删除物业
export function delWuye(propertyId) {
  return request({
    url: '/parkmanagement/wuye/' + propertyId,
    method: 'delete'
  })
}
